<template>
    <view class="content">
        <image class="logo" src="/static/logo.png"></image>
        <view class="text-area">
            <text class="title">{{title}}</text>
        </view>
        <!-- 添加跳转按钮 -->
        <button @click="goToLogin" class="login-btn">前往登录</button>
    </view>
</template>

<script>
    export default {
        data() {
            return {
                title: 'Hello'
            }
        },
        onLoad() {

        },
        methods: {
            // 跳转登录页面的方法
            goToLogin() {
                uni.navigateTo({
                    url: '/pages/login/login'
                });
            }
        }
    }
</script>

<style>
    .content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .logo {
        height: 200rpx;
        width: 200rpx;
        margin-top: 200rpx;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 50rpx;
    }

    .text-area {
        display: flex;
        justify-content: center;
    }

    .title {
        font-size: 36rpx;
        color: #8f8f94;
    }

    /* 新增按钮样式 */
    .login-btn {
        margin-top: 40rpx;
        background-color: #2979ff;
        color: white;
        border-radius: 50rpx;
        font-size: 32rpx;
        height: 80rpx;
        line-height: 80rpx;
        width: 80%;
        text-align: center;
    }
</style>